package edu.sctu.zhengsenwen.month201505.day20150517;

/**
 * Created by user15 on 2015/5/18.
 */
public class TextData {

    private Teacher[] teacher  = new Teacher[3];


    public Teacher[] getTeacher(){

        Teacher teacher1 = new Teacher();

        teacher1.name="唐三";
        teacher1.number=23;
        teacher1.sex="男";
        teacher1.kechen="魂技";
        teacher1.work="博士";

        Student[] students1 = new Student[3];

        for(int i=0;i<students1.length;i++){

            Student student = new Student();

            student.name="雪清河"+i;
            student.code=58+i;
            student.age=16+i;
            student.number=34+i;
            student.sex="女";
            student.address="PZH";

            students1[i]=student;

        }
            teacher1.students=students1;



        Teacher teacher2 = new Teacher();

        teacher2.name="小舞";
        teacher2.number=21;
        teacher2.sex="女";
        teacher2.kechen="魂力";
        teacher2.work="教授";

        Student[] students2 = new Student[3];

        for(int i=0;i<students2.length;i++){

            Student student = new Student();


            student.name="兔子"+i;
            student.code=60+i;
            student.age=17+i;
            student.number=24+i;
            student.sex="男";
            student.address="CD";

            students2[i]=student;
        }
        teacher2.students=students2;


        Teacher teacher3 = new Teacher();

        teacher3.name="李四";
        teacher3.number=25;
        teacher3.sex="男";
        teacher3.kechen="编程";
        teacher3.work="讲师";

        Student[] students3 = new Student[3];
        for(int i=0;i<students3.length;i++){

            Student student = new Student();

            student.name="一休"+i;
            student.code=53+i;
            student.age=19+i;
            student.number=24+i;
            student.sex="女";
            student.address="BJ";

            students3[i]=student;
        }

        teacher3.students=students3;


        this.teacher[0]=teacher1;
        this.teacher[1]=teacher2;
        this.teacher[2]=teacher3;


        return this.teacher;

    }

}
